package design.test4Strategy;

public  class Context {
	//环境角色持有对抽象策略角色的引用
	AbstractPhotoStrategy photoStrategy;
	
	public  void photo() {
		photoStrategy.photo();
	}
	public void call(){
		System.out.println("打电话");
	}

	public AbstractPhotoStrategy getPhotoStrategy() {
		return photoStrategy;
	}

	public void setPhotoStrategy(AbstractPhotoStrategy photoStrategy) {
		this.photoStrategy = photoStrategy;
	}
	
	
}
